package com.blog.service;

import com.blog.mapper.UserMapper;
import com.blog.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userServiceImpl")
public class UserServiceImpl implements UserService{

    @Autowired
    private  UserMapper userMapper;


    @Override
    public boolean register(User user) {
        return userMapper.register(user);
    }

    @Override
    public User login(User user) {
        return userMapper.login(user);
    }

    @Override
    public Integer getUserState(String account, String password) {
        return userMapper.getUserState(account,password);
    }

    @Override
    public Integer byUserAccountGetInfo(String account) {
        return userMapper.byUserAccountGetInfo(account);
    }
}
